.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 300px;
    max-height: 600px;
    display: flex;
    align-items: flex-end;
    max-width: 1360px;
    margin: 0 auto;
    overflow: hidden;
}

.hero__video {
    position: initial;
    top: 0;
    left: 0;
    object-position: bottom;
    width: 100%;
    object-fit: cover;
    max-height: 600px;
}

.hero__mobile-vid-container {
    display: none;
    position: relative;
    width: 100%;
    max-height: 600px;
}

.hero__mobile-vid-container::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero__video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__image {
    position: absolute;
    inset: 0;
    object-fit: cover;
    max-height: 600px;
    width: 100%;
    height: 100%;
}

.offers {
    display: grid;
    padding: var(--space-m) 0px 0px;
    gap: var(--space-s);

    .offers__media {
        position: absolute;
        object-fit: cover;
        height: 100%;
        width: 100%;
        object-position: center;
    }

    .offers__media--video {
        object-position: 50% 70%;
    }

    .offers__text,
    .offers__content {
        position: relative;
        max-height: 270px;
        z-index: 1;
        padding: var(--space-s);
    }

    .offers__content {
        height: 100%;
        padding: var(--space-s);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
    }

    .offers__tile {
        position: relative;
        height: 100%;
        width: 100%;
        min-height: 100%;
    }

    .offers__tile:is(:hover, :focus) {
        .offers__button,
        .offers__tile-bottom-button {
            background-color: #008cba;
            color: #fff;
        }

        .offers__button--secondary,
        .offers__tile-bottom-button--secondary {
            background-color: #ffdc00;
            color: #00263d;
        }

        .offers__tile-hover-content {
            display: flex;
        }
    }

    .offers__tile-bottom-button,
    .offers__tile-bottom-button--secondary {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 8px 0;
        z-index: 1;
    }

    .offers__tile-bottom-button--secondary {
        background-color: rgba(0, 38, 61, 0.65);
        color: #fff;
    }

    .offers__tile-hover-content {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
        display: none;
        flex-direction: column;
        padding: 16px;
        align-items: center;
        text-align: center;
        justify-content: center;
        background-color: rgba(0, 38, 61, 0.7);
    }
}

.card-container #items .item {
    flex: 45%;
}

.card-container #items .item:first-child {
    flex: 100%;
}

@media only screen and (max-width: 992px) {
    .hero__video {
        display: none;
    }
    
    .hero__video--mobile {
        display: block;
        width: unset;
        max-height: 350px;
    }
    
    .hero__mobile-vid-container {
        display: flex;
        justify-content: center;
    }

    .offers {
        display: flex;
        flex-flow: row wrap;

        .offers__media-mobile-left {
            object-position: left;
        }
        .offers__media-mobile-right {
            object-position: right;
        }
    }
}

@media only screen and (max-width: 768px) {
    .offers__tile--shadowed::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
        pointer-events: none;
    }
}

@media only screen and (max-width: 576px) {
    .offers__tile {
        max-height: 270px;
    }
}
